// 根据角色动态生成路由
import { MockMethod } from "vite-plugin-mock";

export default [
  {
    url: "/api/asset/asset_scope",
    method: "post",
    response: ({ body }) => {
      return {
        code: 2000,
        message: "操作成功",
        data: {
          scope_group_name: "test",
          scope_type: " ip",
          scope: "111. 111. 111. 112, 12. 12. 12. 12",
          scope_array: ["111. 111. 111.112", "12. 12. 12.12"],
          black_scope: null,
          black_scope_array: [],
          scope_id: "65994d1b8dbf870043af437c"
        }
      };
    }
  },
  {
    url: "/api/asset/get_asset_groups",
    method: "post",
    response: ({ body }) => {
      return {
        code: 2000,
        message: "操作成功",
        data: {
          page: 1,
          size: 10,
          total: 11,
          items: [
            {
              scope_group_name: "test",
              scope_type: "ip",
              scope: ["111. 111. 111.112", "12. 12. 12.12", "13.13.13.13"],
              scope_array: [
                "111. 111. 111.112",
                "12. 12. 12.12",
                "13.13.13.13"
              ],
              black_scope: null,
              black_scope_array: [],
              scope_id: "65994d1b8dbf870043af437c",
              create_time: "2021-08-10 07:59:59"
            },
            {
              scope_group_name: "test1",
              scope_type: "domain",
              scope: ["bau.com", "www.qq.com"],
              scope_array: ["bau.com", "www.qq.com"],
              black_scope: null,
              black_scope_array: [],
              scope_id: "65994d1b8dbf870043af437cvc",
              create_time: "2021-08-10 07:59:59"
            }
          ]
        }
      };
    }
  }
] as MockMethod[];
